<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

namespace Admin\Model;

class TestObjectModel extends SyncModel{
    
    protected $tableName = 'testobject'; 
    
    //配置id与objectId绑定
    protected $_map = array('objectId' => "id");


    //配置字段
    protected $fields = array(
        'id', 
        'foo', 
        'syncStatus',
        'status',
        '_type'=>array(
            'objectId'=>'varchar',
            'foo'=>'varchar', 
            'syncStatus'=>'int',
            'status'=>'int'
        )
    );
    
    
    
}
